package com.shop.entity;

import java.util.Date;

public class Emp {
	private Integer id;
	private String ename;
	private String job;
	private byte sex;
	private Double sal;
	private Date hiredate;
	//private Integer deptno;
	private Dept dept;
	private Integer salGrade;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

	public String getEname() {
		return ename;
	}
	public void setEname(String ename) {
		this.ename = ename;
	}
	public String getJob() {
		return job;
	}
	public void setJob(String job) {
		this.job = job;
	}
	public byte getSex() {
		return sex;
	}
	public void setSex(byte sex) {
		this.sex = sex;
	}
	public Double getSal() {
		return sal;
	}
	public void setSal(Double sal) {
		this.sal = sal;
	}
	public Date getHiredate() {
		return hiredate;
	}
	public void setHiredate(Date hiredate) {
		this.hiredate = hiredate;
	}

	public Dept getDept() {
		return dept;
	}
	public void setDept(Dept dept) {
		this.dept = dept;
	}
	public Integer getSalGrade() {
		return salGrade;
	}
	public void setSalGrade(Integer salGrade) {
		this.salGrade = salGrade;
	}
	@Override
	public String toString() {
		return "Emp [id=" + id + ", ename=" + ename + ", job=" + job + ", sex="
				+ sex + ", sal=" + sal + ", hiredate=" + hiredate 
				+ ", salGrade=" + salGrade + "]";
	}
	public Emp(Integer id, String ename, String job, byte sex, Double sal,
			Date hiredate, Dept dept, Integer salGrade) {
		super();
		this.id = id;
		this.ename = ename;
		this.job = job;
		this.sex = sex;
		this.sal = sal;
		this.hiredate = hiredate;
		this.dept = dept;
		this.salGrade = salGrade;
	}
	public Emp() {
		super();
	}
	public Emp(String ename, String job, Double sal) {
		super();
		this.ename = ename;
		this.job = job;
		this.sal = sal;
	}
	
	
	
}
